home *** CD-ROM | disk | FTP | other *** search
- Path: chronicle.mti.sgi.com!austern
- From: kanze@gabi-soft.fr (J. Kanze)
- Newsgroups: comp.std.c++
- Subject: Re: Portability. Modules. WAS: RE: Are all Windows programs ill-formed?
- Date: 22 Feb 1996 09:15:44 PST
- Organization: GABI Software, Sarl.
- Approved: austern@isolde.mti.sgi.com
- Message-ID: <KANZE.96Feb22142953@gabi.gabi-soft.fr>
- References: <UPMAIL04.199602192354270852@msn.com>
- NNTP-Posting-Host: isolde.mti.sgi.com
- X-Original-Date: 22 Feb 1996 13:29:53 GMT
- In-Reply-To: "Eugene Lazutkin"'s message of 20 Feb 96 07:20:29 GMT
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBVAwUBMSyk70y4NqrwXLNJAQHpmwH/esy7ECnhOxnGiZXu1eKtd34Pe0o1KLGr
- 0ap3udr2z3/YqjnpH0IXjWQ6PYLUoSDYRMZyEjXLVVKCAXaIMRwuQg==
- =6hOX
- Originator: austern@isolde.mti.sgi.com
-
- In article <UPMAIL04.199602192354270852@msn.com> "Eugene Lazutkin"
- <INT@msn.com> writes:
-
- |> I don't care about the actual implementation. Virtually there is a main().
- |> I know that all my static constructors will be executed BEFORE main(),
- |> WinMain() or any other head procedure. It is important. It doesn't make
- |> any difference for me whether or not main() is the first called subroutine.
- |> In fact, in most cases it is not true. Almost all platforms call some
- |> stub before your main().
-
- You know something that is *NOT* guaranteed by the draft standard.
- There is no guarantee that static constructors are executed before main,
- although in fact, this is the case for all implementations I am familiar
- with, at least as long as the static variables are not in DLL's. (And:
- I've got more than a little code which depends on this. Despite it not
- being guaranteed.)
- --
- James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
- GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
- Conseils, itudes et rialisations en logiciel orienti objet --
- -- A la recherche d'une activiti dans une region francophone
- ---
- [ To submit articles: Try just posting with your newsreader. If that fails,
- use mailto:std-c++@ncar.ucar.edu
- FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
- Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu
- ]
-